package com.isesol.ime.rest.model.param;

import com.isesol.api.rest.model.base.*;

/**
 * 报文 请求
 *
 * @author peter zhang
 */
public class MachineToolMessageRequest extends BaseRestRequest{

	private String id;

	/**
	 * 报文id
	 */
	private String msgId;

	/**
	 * 报文名称
	 */
	private String msgName;

	/**
	 * 报文号
	 */
	private String msgNumber;

	/**
	 * 机床类型 id
	 */
	private String typeId;

	/**
	 * 已选参数
	 */
	private String params;

	/**
	 * 规则类型
	 */
	private String ruleType;

	/**
	 * 规则
	 */
	private String rule;

	/**
	 * 是否反馈
	 */
	private boolean feedback;

	/**
	 * 是否加密
	 */
	private boolean encrypt;

	/**
	 * 是否永久保存
	 */
	private boolean preservation;

	/**
	 * 使用状态
	 */
	private String usingStatus;

	/**
	 * 备注
	 */
	private String memo;

	private String status;

	/**
	 * 机床类型
	 */
	private String machineType;

	/**
	 * 全局报文
	 */
	private String isDefault;

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

	public String getMachineType() {
		return machineType;
	}

	public void setMachineType(String machineType) {
		this.machineType = machineType;
	}

	public String getStatus(){

		return status;
	}

	public void setStatus(String status){

		this.status = status;
	}

	public String getMsgId(){

		return msgId;
	}

	public void setMsgId(String msgId){

		this.msgId = msgId;
	}

	public String getMsgName(){

		return msgName;
	}

	public void setMsgName(String msgName){

		this.msgName = msgName;
	}

	public String getRuleType(){

		return ruleType;
	}

	public void setRuleType(String ruleType){

		this.ruleType = ruleType;
	}

	public boolean isFeedback(){

		return feedback;
	}

	public void setFeedback(boolean feedback){

		this.feedback = feedback;
	}

	public boolean isEncrypt(){

		return encrypt;
	}

	public void setEncrypt(boolean encrypt){

		this.encrypt = encrypt;
	}

	public boolean isPreservation(){

		return preservation;
	}

	public void setPreservation(boolean preservation){

		this.preservation = preservation;
	}

	public String getMemo(){

		return memo;
	}

	public void setMemo(String memo){

		this.memo = memo;
	}

	public String getTypeId(){

		return typeId;
	}

	public void setTypeId(String typeId){

		this.typeId = typeId;
	}

	public String getParams(){

		return params;
	}

	public void setParams(String params){

		this.params = params;
	}

	public String getId(){

		return id;
	}

	public void setId(String id){

		this.id = id;
	}

	public String getUsingStatus(){

		return usingStatus;
	}

	public void setUsingStatus(String usingStatus){

		this.usingStatus = usingStatus;
	}

	public String getMsgNumber(){

		return msgNumber;
	}

	public void setMsgNumber(String msgNumber){

		this.msgNumber = msgNumber;
	}

	public String getRule(){

		return rule;
	}

	public void setRule(String rule){

		this.rule = rule;
	}

	@Override
	public String toString() {
		return "MachineToolMessageRequest{" +
				"id='" + id + '\'' +
				", msgId='" + msgId + '\'' +
				", msgName='" + msgName + '\'' +
				", msgNumber='" + msgNumber + '\'' +
				", typeId='" + typeId + '\'' +
				", params='" + params + '\'' +
				", ruleType='" + ruleType + '\'' +
				", rule='" + rule + '\'' +
				", feedback=" + feedback +
				", encrypt=" + encrypt +
				", preservation=" + preservation +
				", usingStatus='" + usingStatus + '\'' +
				", memo='" + memo + '\'' +
				", status='" + status + '\'' +
				", machineType='" + machineType + '\'' +
				", isDefault='" + isDefault + '\'' +
				'}';
	}
}
